<%--
  Created by IntelliJ IDEA.
  User: XT
  Date: 2022/5/11
  Time: 17:14
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>食材信息</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/default.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
    <script type="text/javascript" src='easyui/js/outlook2.js'> </script>
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/themes/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<form action="${pageContext.request.contextPath}/SelectScbhServlet" method="post">
    <div style="float: left" class="datagrid-btn-separator" >
        &nbsp;&nbsp;食&nbsp;材&nbsp;编&nbsp;号:<input id="search_student_name" class="easyui-textbox" name="scbh">
        <input type="submit"  value="搜索" >
    </div>
</form>
<form action="${pageContext.request.contextPath}/SelectScmcServlet" method="post">
    <div style="float:left;margin-left: 15px" >
        &nbsp;食&nbsp;材&nbsp;名&nbsp;称:<input id="clazzList" class="easyui-textbox" name="scmc" />
        <input type="submit"  value="搜索"  >
    </div>
</form>
<span style="color: green;font-size: 14px;margin-left: 50px">${Changed_message}</span>
<table  class="easyui-datagrid" title="食材信息" url="" style="width: 100%; height: 100%" data-options="singleSelect:true,collapsible:true" rownumbers="true" pagination="true" toolbar=#toolbar>
    <thead data-options="frozen:true">
    <tr>
        <th data-options="field:'scbh',width:150">食材编号</th>
        <th data-options="field:'scmc',width:150">食材名称</th>
        <th data-options="field:'zs',width:150">总数目</th>
        <th data-options="field:'kc',width:150">食材库存</th>
        <th data-options="field:'dj',width:150,align:'center'"></th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="sc" items="${sc}">
        <tr>
            <td>${sc.scbh}</td>
            <td>${sc.scmc}</td>
            <td>${sc.zs}</td>
            <td>${sc.kc}</td>
            <td ><a href="xgsc.jsp?scbh=${sc.scbh}&scmc=${sc.scmc}&zs=${sc.zs}&kc=${sc.kc}" class="easyui-linkbutton" data-options="iconCls:'icon-search'">登记</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div id="toolbar">
    <a href="${pageContext.request.contextPath}/SCServlet" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>
</div>
</body>
<script type="text/javascript">

</script>
</html>
